﻿<div class="jrMenu">
    <ul>
        <li class="logotipo">
        	<span title="AGPR Systems">AGPR</span>
        </li>
        @if (ViewBag.isLogado)
        {
        <li class="menu-sub">
            <a>Clientes <span class="arrow-down"> </span></a>
            <ul>
                <li>@Html.ActionLink("Cadastrar", "cadastrar", "clientes")</li>
                <li>@Html.ActionLink("Consultar", "consultar", "clientes")</li>
                <li class="footer"></li>
            </ul>
        </li>
        <li class="menu-sub">
            <a>Locações <span class="arrow-down"> </span></a>
            <ul>
                <li>@Html.ActionLink("Cadastrar", "cadastrar", "locacoes")</li>
                <li>@Html.ActionLink("Consultar", "consultar", "locacoes")</li>
                <li class="footer"></li>
            </ul>
        </li>
        <li class="menu-sub">
            <a>Administração <span class="arrow-down"> </span></a>
            <ul>
                <li>
                    <a>Funcionários <span class="arrow-right"> </span></a>
                    <ul>
                        <li>@Html.ActionLink("Cadastrar", "cadastrar", "funcionarios")</li>
                        <li>@Html.ActionLink("Consultar", "consultar", "funcionarios")</li>
                        <li class="footer"></li>
                    </ul>
                </li>
                <li>
                    <a>Produtos <span class="arrow-right"> </span></a>
                    <ul>
                        <li>@Html.ActionLink("Cadastrar", "cadastrar", "produtos")</li>
                        <li>@Html.ActionLink("Consultar", "consultar", "produtos")</li>
                        <li class="footer"></li>
                    </ul>
                </li>
                <li>
                    <a>Mídias <span class="arrow-right"> </span></a>
                    <ul>
                        <li>@Html.ActionLink("Cadastrar", "cadastrar", "midias")</li>
                        <li>@Html.ActionLink("Consultar", "consultar", "midias")</li>
                        <li class="footer"></li>
                    </ul>
                </li>
                <li>
                    <a>Gêneros <span class="arrow-right"> </span></a>
                    <ul>
                        <li>@Html.ActionLink("Cadastrar", "cadastrar", "generos")</li>
                        <li>@Html.ActionLink("Consultar", "consultar", "generos")</li>
                        <li class="footer"></li>
                    </ul>
                </li>
                <li class="footer"></li>
            </ul>
        </li>
        <li class="userPanel">
            <span>
                <span title="Usuário">@ViewBag.usuario.nome</span>
                (@Html.ActionLink("Sair", "logout", "sessao"))
            </span>
        </li>
        }
    </ul>
</div>